package com.github.m6d21.sso.dao.user.dao;

import com.github.m6d21.sso.model.user.entity.User;
import com.github.m6d21.sso.model.user.qo.UserQO;
import java.util.List;

/**
 *<p>
 *IUserDao
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:26:30
 * @since 1.0.0
 */
public interface IUserDao {

    User getById(Integer id);

    List<User> selectUsernamePassword(String username, String password);

    boolean insertUser(User user);

    boolean insertSelectiveUser(User user);

    boolean updateUserById(User user);

    boolean updateSelectiveUserById(User user);

    List<User> query(UserQO userQO);

    List<User> selectUsername(String username);

    boolean deleteById(Integer id);

    boolean deleteByIds(List<Integer> ids);
}
